<!-- 领料记录 -->
<template>
  <div class="materialRequisitionRecord">
    <div class="materialRequisitionRecord-header">
      <div class="materialRequisitionRecord-header-btn">
        <el-button size="mini">导出</el-button>
      </div>
      <div class="materialRequisitionRecord-header-info">
        <!-- <div class="materialRequisitionRecord-header-info-item">
          <span>需求总量：</span>
          <span>90</span>
        </div> -->
        <div class="materialRequisitionRecord-header-info-item">
          <span>领用总量：</span>
          <span>{{data.quantityConsumeTotal}}</span>
        </div>
        <!-- <div class="materialRequisitionRecord-header-info-item">
          <span>退料总量：</span>
          <span>0</span>
        </div> -->
      </div>
    </div>
    <div class="materialRequisitionRecord-main">
      <el-table :data="data.itemConsumeLineVOList" size="small" border style="width: 100%" >
        <el-table-column type="index" label="序号" width="50" align="center" />
        <el-table-column prop="batchCode" label="领料单编号" ></el-table-column>
        <el-table-column prop="itemName" label="领料单名称" ></el-table-column>
        <el-table-column prop="consumeDate" label="领料日期" ></el-table-column>
        <el-table-column prop="workorderName" label="工单名称" ></el-table-column>
        <el-table-column prop="workorderCode" label="工单编号" ></el-table-column>
        <el-table-column prop="taskName" label="任务名称" ></el-table-column>
        <el-table-column prop="taskCode" label="任务编号" ></el-table-column>
        <el-table-column prop="processCode" label="工艺路线" ></el-table-column>
        <el-table-column prop="processName" label="工序名称" ></el-table-column>
        <el-table-column prop="unit" label="物料信息" ></el-table-column>
        <el-table-column prop="quantityConsume" label="领料总数" ></el-table-column>
        <el-table-column prop="remark" label="备注" ></el-table-column>
      </el-table>
    </div>
  </div>
</template>

<script>
  export default {
    name: 'materialRequisitionRecord',
    props: {
      data: {
        type: Object,
        default: () => {}
      }
    },
    data() {
      return {
        tableData: []
      }
    },
    created() {
    },
    methods: {

    }
  }
</script>

<style lang="scss" scoped>
.materialRequisitionRecord {
  &-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 50px;
    // padding: 0 20px;
    &-btn {
      display: flex;
    }
    &-info {
      display: flex;
      justify-content: space-between;
      &-item {
        display: flex;
        align-items: center;
        margin-right: 20px;
        span {
          font-size: 12px;
        }
      }
    }
  }
}
</style>